﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbMovieRatingRequestTest and is intended
    ///     to contain all TmdbMovieRatingRequestTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbMovieRatingRequestTest
    {
        /// <summary>
        ///     A test for TmdbMovieRatingRequest Constructor
        /// </summary>
        [TestMethod]
        public void TmdbMovieRatingRequestConstructorTest()
        {
            var target = new TmdbMovieRatingRequest();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Value
        /// </summary>
        [TestMethod]
        public void ValueTest()
        {
            var target = new TmdbMovieRatingRequest();
            double expected = new Random().Next( 0, Int32.MaxValue );
            double actual;
            target.Value = expected;
            actual = target.Value;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}